package com.ningxia.water.utils;

import com.ningxia.water.reuslt.Result;
import com.ningxia.water.reuslt.ResultResponse;

/**
 * @author huangzhen
 * @create 2021-05-14 21:27
 */
public class CommonUtils {
    public static Result commonResult(boolean flag){
        if (flag) {
            return ResultResponse.getSuccessResult();
        } else {
            return ResultResponse.getFailResult("操作失败");
        }
    }



}
